// function makePower(power) {
//     return function(number) {
//         return Math.pow(number, power);
//     }
// }

// let power2 = makePower(2);
// let power3 = makePower(3);
// console.log(power2(2))
// console.log(power3(3))


function makeSalary(base /**基本工资 */) {
    return function(performance /**绩效工资 */) {
        return base + performance
    }
}

let salaryLevel1 = makeSalary(12000);
let salaryLevel2 = makeSalary(15000);

console.log(salaryLevel1(2000));
console.log(salaryLevel2(3000));